
#if 0

#include "OSHeaders.h"


//#define		QUEUE_FILE_HEADER_SIZE						(32)
typedef struct _QUEUE_FILE_HEADER_
{
	UInt32 u32RowSize;

	UInt32 u32MaxQSize;
	UInt32 u32Front;
	UInt32 u32Rear;

	Bool8  bLoopCover;
	UInt8 buf[15];
}TQueueFileHeader, *PQueueFileHeader;

//template<class T>
class QueueFile
{
public:
	QueueFile();
	QueueFile(const char *filename, UInt32 capacity, UInt32 rowSize);
	~QueueFile();

	//if The constructor don't Open file, must call it explicitly
	bool Open(const char *filename, UInt32 rowSize);

	OS_Error EnQueue(UInt8 *buf, int len);
	OS_Error DeQueue(UInt8 *buf, int len);
	OS_Error GetElem(UInt32 pos, UInt8 *buf, int len);
	OS_Error SetElem(UInt32 pos, UInt8 *buf, int len);

	void Close();

	UInt32 Count()
	{
		return m_queueFileHeader.u32MaxQSize;
	}

	UInt32 RowSize()
	{
		return m_queueFileHeader.u32RowSize;
	}

	//open
	//close()
	//enqueue(a record buf, record len);
	//dequeue(a record buf, record len);
	//getelem(index, a record buf, record len);
	//setelem(index, a record buf, record len);


private:
	TQueueFileHeader m_queueFileHeader;
	FileOps m_fileOps;
};

#endif

